Dynomotion

Group: DynoMotion Message: 5874 From: Troy Stevens Date: 10/24/2012
Subject: Mach 3 limit switches
Hello

Two questions:

1:
I am trying to set up limit switches for mach3.  I have them wired and they show up working in the digital I/O screen.  

Do I configure them in my init file when I set up my motors, or do I configure them in Mach3?  I have been assuming I use the init file.  When I move the x using mach 3 then trigger the limit switch (limit switches set up in init file) I get, "unexpected motion buffer starved"  and everything stops working and the reset button just flashes, hitting reset does nothing.  

At this point kmotioncnc wont move the motors either.  The only way I have found to reset it is to go to the kmotion step response screen and click step once or twice.  Then I can reset mach 3 and move the motors again.



2:
For kmotioncnc should I get a dialog box when I click the init button?  When I click it I don't get anything.  It has been working for my one axis, I just don't know how to configure the rest of the axis.


Thanks
Troy




Group: DynoMotion Message: 5875 From: Tom Kerekes Date: 10/24/2012
Subject: Re: Mach 3 limit switches
Hi Troy,

#1
Limits must be setup in KFLOP (the init C file).  When using KFLOP Mach3 is not real-time capable of monitoring limit switches.  KFLOP must do this.

Hitting a limit switch will then disable the axes which may result in a "unexpected motion buffer starved" (agreeably a poor message) and Mach3 will be in EStop mode.

The reason you may not be able to RESET Mach3 is that you may still be in the limit switch.  Attempting to enable the axis will fail because a limit switch will immediately disable the axis again.  This is the case with the limit switches mode set as "Kill Motor Drive".   You will need to somehow move the axis out of the switch before you will be able to successfully initialize.  If you have independent limits on opposite ends of travel "Disallow Drive into Limit" mode will allow you to re-initialize while still in the limit.  Please do not use the "Stop Movement" mode as it is not fully implemented. 

#2
The Init User Button must be configured to run a C program (that you create) to initialize all your axes and your system.    Assign programs to User Buttons using the Tool Setup | User Buttons Screen:



HTH
Regards
TK